package com.atguigu.staservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

//springboot启动类
@SpringBootApplication
//启动扫描包
@ComponentScan(basePackages = {"com.atguigu"})
//nacos服务注册
@EnableDiscoveryClient
//远程调用
@EnableFeignClients
//mapper扫描
@MapperScan("com.atguigu.staservice.mapper")
//启动类：开启定时任务
@EnableScheduling
public class StaApplication {
    public static void main(String[] args) {
        SpringApplication.run(StaApplication.class, args);
    }
}
